﻿using Microsoft.SqlServer.Server;
using Newtonsoft.Json;
using QingZhouLinYe_Web.DbContext;
using QingZhouLinYe_Web.Models;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Web;

namespace QingZhouLinYe_Web.Ashxs
{
    /// <summary>
    /// getQuHua 的摘要说明
    /// </summary>
    public class getQuHua : IHttpHandler
    {
        private DbServices dbServices = new DbServices();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            List<QuHua> qhs = dbServices.getQuHuaNav(24);
            string qhstr = JsonConvert.SerializeObject(qhs);
            context.Response.Write(BaseClass.JsonIndentation(qhstr));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}